add validation to user and pet model