updating user model