Changed to hide the GUI until logging in occurs in the background