HTML5 validation fix