Fixed a crash when trying to login without a username or password.