Improved HTML5 validation