Fix for isIP

Actually detect if the IP is valid: between range of 0.0.0.0 and 255.255.255.255