Added validators to classes.