Corrected the auth to handle user logins better