<button type="button" class="floating-button" disabled>
Send
</button>
$('input').on('input', function (e) {
document.querySelector('.floating-button').disabled = !(document.querySelector('#nameINPUT').validity.valid && document.querySelector('#passINPUT').validity.valid)
});