add function add user and write to csv file