Validation of stateVar names: solved with ng-form tags