fixed errors in handling bad form inputs
Merge branch 'master' of github.com:klhes/p2
fixed form text input checking