fixed error in user model