Add the function to update a contact.