update login logic
Updates for UserController