loginGUI success

also added some methods to clean up code