Move cookie and realm to settings.