Added schema class for message validation.