checking for invalid urls