validation for primary rule