Adding code to update the contact.