Ability to force required attribute

I had to make a field not optional while still having a presence validator and could not remove the "required" attribute. This patch adds a "required" option.