data-driven validation for checkbox type