BugFix: Login with Incorrect Password

A bug where logging in with an incorrect password crashes the page, has
been fixed