Added validation for URL