Create custom validator and base example