Fix in the login logic