Adding HTML5 required attribute to captcha field

When the captcha is being displayed in a form, the field is required server-side so it is useful to make the browser impose built-in client side validation.