Since these keys are used for validation purposes they should be removed from the HTML and set up in the validation plugin. There is a good example of this in the register widget.