Fixed error messages in _validate_url