Added IPv4 & IPv6 validation methods.