Fix user update functionality