add message model validations and tests