Fixes in validation checks in IpRange.java