add downloadCsv method (add valid check logic)