This fixes #21 - crash when incorrect login information is entered.