fix for validation check of HTML5