Fixed login bug that crashed the server when bad login was given.