better cidr validation for Block
better cidr validation for IP