fixed validation for checkboxes