more checking on url validity