[api] second part to fix the actual registration of the user