add document title validation