title: why doesn't validating input on eventListener work?
body: <p>Could you help me to make this sandbox work?
  I miss something.</p>
  <p>When the length of the password or login is more than 3, I'd like to see &quot;GOOD&quot; instead of &quot;FAIL&quot; close to the input.</p>
  <p>here is the link: <a href="https://codesandbox.io/s/competent-bogdan-5604u?file=/src/App.js" rel="nofollow noreferrer">https://codesandbox.io/s/competent-bogdan-5604u?file=/src/App.js</a></p>
  <p>Thanks!</p>