Fixed bug with crashing on failed login.