Add log for validIp.