add form error state