update csv file + check validation