added ability to check if a URL is valid