Refactor for html5 form validations
Start tests
Add tests
Fix test runner errors
Refactor validateInput
finish refactor
remove old code
Change both to false for test