check for preSubmit errors

Solves #200.
TODO: error bubbling.
Add has-error to <form>
Merge pull request #214 from sandello-alkr/patch-2

check for preSubmit errors