Validation message on losing focus?

Right now my validation text shows up whenever user starts typing something, is there any way to make this message appear only when the input loses focus?