add regular expressions to validate client messages sent to server