Validating QoS in CONNECT and SUBSCRIBE messages