Made doctype-based validation optional.