Implemented validation for the PetState object