even better error handling for csv upload