Added StateError exception and ensure that a form can only be submitted after it has been validated
Added formalchemy as dependency
Added setup of FormAlchemy fieldsets in the form.