Custom validation on lose focus?

Is there any way to show validation information after user lose focus on text input? Because right now it shows immediately when user types something into input