working chat and code sharing from chat. fixed logout bug. fixed default script bug.