HI there
I do something similar on my site. Below is the basic structure that I use, you can adapt it to your needs.
$w('#email1, #password1').onChange(() => {
if ($w('#email1').valid && $w('#password1').valid) {
$w("#yourButton").enable();
} else {
$w("#yourButton").disable();
}
})
Good luck!