How to create a dynamic member page with custom login?

Ok, so this has been a real challenge for me. I am following this tutorial:
Corvid Tutorial: Building Your Own Members Area
However, instead of " wixUsers.promptLogin( { “mode” : “login” } )" I am using my own custom login with “wixUsers . login ( email , password )”
In other words, I am bypassing the site member login according to the API: https://www.wix.com/corvid/reference/wix-users.html#promptLogin

Now the problem is how can I create a dynamic page for my newly logged in member?
wixLocation.to( /Members/](wixLocation.to(/Members/${wixUsers.currentUser.id});) [${wixUsers.currentUser.id}](wixLocation.to(/Members/${wixUsers.currentUser.id});) [ );
Does not work even though everything else is the same. I can think that I am messing up the IDs (owner vs site id?)
This is the code for my loginButton


$w( “#loginButton” ).onClick((event) => {
let email = $w( “#loginEmail” ).value;
let password = $w( “#loginPassword” ).value;
let userId;
let userEmail;
wixUsers.login(email, password)
.then( (user) => {
userId = user.id;
return user.getEmail();
})
.then( (email) => {
userEmail = email;
return wixData.query( “Members” )
.eq( “_id” , userId)
.find();
})


Hello! Have you figured it out yet? I’m still stuck!