convert user model into an entity