Better value-checking for checkboxes and radio buttons.