Add a validator for the principal field