[fix #10] use existing type when upgrading anonymous user and removing old user doc