validation for pet ui