add validation to user model