fixes issues with #557

fixes Adam's suggestion that validation now happens onblur
instead of on mouseout
also implements gail's suggestion
works when submit button is pressed

and focus is still on the last element
cleaning up my commit

extra file accidently added thanks @eldeveloper
fix changes based on comments
Merge pull request #562 from teravest/fixontovalidation

Fixontovalidation