Add register endpoint and auth
Send more error details