Added loginView

Changed to start loginView first and main window after login.