handling invalid url.