update validate endpoint.