updates user model