Finish changes for ask password in main window