Form class enhancements

* Add `require*` methods which make it easier to add required fields to
  a form.
* Backport fix from IEG grant review for processing null inputs.

Change-Id: I1e565c3e17d5bfe9448afb95172348701ac06d53