3.0 formhelper input() required attribute

Part of #2267. Fix missing required attributes when input() is used. I've also removed a bunch of duplicated/redundant tests.  Only 30 more skips to go.