fixed regex for invalid URLS