Remove check for 'Anyone can register' setting in url slugs.  It's entirely possible that users would be created or generated outside the UI, or at a time where it was possible for users to register.