Problem with LCD?

You might just as well connect LCD pin 3 to GND rather than use a resistor, but to provide the contrast voltage correctly you need a voltage divider, ie two resistors.

A resistance near 1K ohms between GND and LCD pin 3 and about 10K ohms between +5V and LCD pin 3 will typically be a good starting point.

Don