Fix for checking required radiobuttons/checkboxes