fixing validation errors in file paths