Pass form state by reference.
Merge pull request #4 from sergii-tkachenko/setup-pass-form-state-by-reference

Pass form state by reference.