validates that directory exists
validates for existent url in command line args