added Doctype Check