swapped title and message for confirm box and added file validator