Function to update an email address