Fix empty domain after changing settings when prompt is opened.
Fix empty password length after changing settings when prompt is opened.
Correctly initializing settings.