method errors= for model class