Fixed bug that doubled number of unseen messages every time log out and log back in. Also, fixed the bug that repeat messages within a chat. The problem was that when connection was closed, the chat objects were still held on memory. Therefore, when a user logged back in before the garbage collector acted, the objects from the previous connection were still on memory and were being used for the new connection. This explains the doubling of information