Adding class to wait for network + requesting auth token in the main activity class.