Replaced obsoleted validators.Required with validators.DataRequired.