validate for uri