added models validation