Added user_id to logging