Continue looping until the user has entered a valid file name and path