Can validate directories.
Split validation to its own class.