finished validation for url input