Corrected function of checkboxes, select and radios