Controller to update user_id