state before login