modify the ip validate