form re-apply submitted data on errors, and added security checks
documentation completed