Add 'required' parameter for HTML5 'required' attribute on text fields and text areas

When true, 'required' field parameter adds the HTML5 'required' attribute to text fields and textareas.