Add function to update name and email