added a validator class and functionality to check the file before importing