Fixed an issue with chat messages. Moved validation to the server to avoid having to load the validation library in the client.