login and update user