Validate connections before using them