pub fn validate_topic(topic: &str) -> Result<()>
Validates a topic and returns an error if invalid
Returns MqttError::InvalidTopicName if the topic is invalid
MqttError::InvalidTopicName