Added message validation.