Handling for invalid path words and dupes
Use DB rather than additional variables for not-a-word check