Add user_id to state record.