Checking url validity