Validator library