Fix issue that registration failed with multiple users