cnp validator and extractor