Check if URL's are valid