Fix login / main activity flow.