Add classes for required, valid, and invalid, based on form state and on arguments passed into the form. WTD-530.