Validate the url.