required class should not be applied on hidden input fields and checkboxes