Don’t use inline validation while the user is typing —unless it helps them— like in the case of creating a password, username, or message with a character count.
Design Better Forms
Andrew Coyle
16.8K237

To complete this tipp: By default validate as soon as the input field is out of focus ;)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.