fixed problem with trying to log in with invalid username