Simple security added to chat example