Add validation to check url input