Fixed bug in login system causing crash when bad credentials.