Fixed a bug which caused players to be unable to log in