Add required attribute to form elements

Let's implement add support for the "required" attribute, so that form submission won't occur if some field is missing (obviously that's a only client-side check and not all browsers support it).
`checkboxlist` field types: no support for this new `required` html5 attribute...