validate number of connections and number of concurrent connections