Hi Mor,
you can use the catch function that will execute if the login fails.
then if the login fails you simply expand you errortext item.
function loginFunction(){
$w(‘#loginNow’).onClick(()=>{
let email = $w(‘#email’).value;
let password = $w(‘#password’).value;
wixUsers.login(email, password)
.then(()=>{
wixWindow.lightbox.close();
})
. catch (()=>{
$w(‘#errorText’).expand();
})
})
}