Fixed mulitple chats being created and added loggin to server app.