Add register endpoint.