BaseValidator class.