Programmatically validate whether uploaded file is in proper CSV file format