validation for checkbox and radio