Added log message when invalid URLs are encountered