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

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