Include message validation for input and output