custom validator for checkbox group