Add update user function