Update the profile save function