fix isValid get url from prototype