Fix a bug in the url input

Now only accept url