ion() {
        return this.username !== &quot;&quot; &amp;&amp; this.password !== &quot;&quot;
    },
    login: function() {/*...*/},
    view: function() {
        return m(&quot;.login&quot;, [
            m(&quot;input[type=text]&quot;, {oninput: m.withAttr(&quot;value&quot;, this.setUsername.bind(this)), value: this.username}),
            m(&quot;input[type=password]&quot;, {oninput: m.withAttr(&quot;value&quot;, this.setPassword.bind(this)), value: this.password}),
            m(&quot;button&quot;, 