Better url checking