Add required attrib

Add support for HTML5 required attribute