Subnet validity check