added check for no errors on file upload to prevent import before file selected.