revise logout