fix for isValidUrl