Fix for existing cookie but changed DB during registration