validate ips