refactor(forms): use errorStates and warningStates