Fixed small bug when logging in with wrong credentials