Added path validation
Now sanitizes paths