Added documentation for validator.