adding validation to url