Added login framework, as well as fixed size issue for gui.