Validate ip address with ipaddr

Also now supports ipv6 addresses