id nil to user_id