fix ng-class:has-error issue