Cleanup register_user for functional_api