add class required for required fields (checkbox and number input)