Added urlCheck function