fix bugs on the validation of animal