Copied basic setup from loginGUI