Fixed the register endpoint.