Finally fixed URL validation.