Validation check on the file path that the user is selecting in the open and save dialog