Added login and register functionality through GUI.