Make checkboxes and radios a bit more bulletproof.