update user add function