update user and login