Make it possible to validate a checkbox group

I have imitated the radio button behaviour.

Testcase added in validators.html

Updated comment for getFieldElements() as we're using this function for checkboxes as well now.