fix up the login handling when the password or username is wrong