url validation

added URL validation to all the URLs processed. also optional kwarg test_url to enable(default)/disable URL validation