Alternately if you want to create a custom login page just use the code below:
import wixUsers from ‘wix-users’;
import wixLocation from ‘wix-location’;
$w.onReady( function (){
$w('#LoginButton').onClick( **function** (){
let email = $w(‘#LoginEmailInput’).value;
let password = $w(‘#LoginPasswordInput’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to('/home');
})
})
})