Old version of url validation