checking the url is valid 2