resolve logout from admin page bug