check if url is well formatted