added a system.exit(0) when login is cancelled to fix some issues with the program still running even though all windows are closed