Now validates output path and displays error if invalid