add to file, error check and email form done