update user model for login