updated url validation