Added onError callback

When a user cannot change a form input due to masks bound to it, it could be quite misleading, mostly in case when a mask is complicated. This modification allows to set a callback when an incorrect symbol was typed.