update email form code