Added validation for csv files