Added validation for radio buttons and checkboxes