feat #964 Show error tooltip whenever there is an error

This pull request allows error tooltip to appear as soon as there is an error while typing. For this we have introduced validation event 'onError'.