Added debug message to troubleshoot apparent logout