Add validations for messages