multi-layer data validation