use of ui-state-error