The way to do it is already all there in the code. Think about someone being on the Account / Personal Details page and saving a value there. You will want to basically do exactly the same thing (albeit on a subset of fields, rather than an entire group of them).