creating function to validate radio/checkboxes

Incomplete function intended to do validation. Wrote comments to help
guide development of function(s)