make groupRequired work for checkboxes