debug login, logout