Custom Login Code

import wixUsers from 'wix-users';

import wixLocation from 'wix-location';

$w.onReady(function(){

$w('#loginNow').onClick(function (){

let email = $w('#loginEmail').value;

let password = $w('#loginPassword').value;

wixUsers.login(email,password)

.then(()=>{

wixLocation.to('/home');

})

})

})