Update form state.