required for checkbox and radio