Registering user against custom database connection with auto-migration doesn't work

So I think, the error "Cannot read property 'email' of undefined" may have been caused by an error in a rule. Although I swear I disabled rules when trying this. So I corrected the error and simply return the callback from GetUser and I can now register. Is this the correct approach because I will proceed accordingly if it is.