added the URL check Function