Added validation  of file type before rendering for uploaded CSV files.