Added Exit button in footer of login panel.

Removed mainWindow.pack() command when switching inbetween windows.