Fixed an issue that would crash the app if the user type in the wrong username/password