Check if the url the user enters is correct