Fix trying to login with invalid credential