Integrating data structure with validator