parser.validate for pre-validation