Corrected method for login.