modify mbinput template to avoid useless DOM nodes.
correct minor code error in mbinput directive custom validation