Added HTML5 required attribute support