password field changes and end of game functions