Checking the validity of the url provided.

Uses the url package to check whether the url that is going to be used to make the request is valid.