Check a url and returns it if valid, otherwise it returns null.
the url if valid, null otherwise
null
url to validate.