Add register endpoint and auth
Send more error details
Add submit handler
Update submit and register endpoints.
Update submit function
Add a better update for submit auth
Bug fixes for  new auth register