Add account update function