Changed the params in attempt_login