fixing multiple bugs causing the game to lock-up and added update password logic