validate url if present