Added validation for checkboxes and for radios.