Added validate directory.