Solving small bug when trying to login with wrong credentials