HTML5 validation fixes