Update the csv upload logic and validation.