transition from Login to Query