tweak ip validation