added more url validation