Added data format testing so encrypted text doesnt get displayed in chat window