Fix logout problem

delete redundant logout