Added try-except block for FileNotFoundError related to user input