Allow custom validators for radio inputs and checkbox inputs

This relates to Issue #5656.

This pull request would allow custom validators to work on radio and checkbox inputs. This allows for advanced validation situations like validating checkbox groups or conditional validation based on the state of other inputs.