Added validation for url.