Adding urlChck function -ver2.