added validation of csv