Deprecate ValidatePerson class and correct compiler error.