Added ipv6 test in is_valid_ip method