added security to chat.