validations to message model