Validate fields in function prepareFromArray of activeRecord
Validate fields active record