Fixing HTML5 validation errors