add some validation to url