clients on both sides get key, chat messages handled, regex added for passwords