added some model rules for unique and required