always trigger onError when validation fails (using pseudo method: validation)
added offline form type (use if you don't want any interaction with the server whatsoever)
fixed line indenting
removed unnecessary offline option
moved before hooks before any validation
added some early returns on invalid doc
Merge pull request #86 from blazer82/validationerror

Validation errors and offline form type