directives for validation added. $setPristine function (from 1.1.x) added.
check required name field when creating widget