modify enfore logout logic.