Added code to validate url for http.