Fix for URL validation