Add functionality to update and save profile details.