Input Field validation message doesn’t show or even logged on React new course

It seems that I have found the problem… I hate being nerd snipped :smiley:
Prettier was the guilty!
He as adding some parenthesis around the input rules. As you can see bellow.


I noticed this because the name property was being logged as ‘undefined’ as you can see in the output screenshot. To solve this I deactivated prettier and repeated the process and then I noticed that without parenthesis all worked fine. Also noticed that with parenthesis an alert box shows up when theres an error (the one from the first screen shot).
Code without parenthesis:
<input
{…register(‘name’, { required: true, minLength: 3 })}
id=“name”
type=“text”
className=“form-control”
/>