[bugfix] set last values on fail
[bugfix] flash error message
Merge pull request #188 from dxu/form-bugfix

bugfix