Added model validations. Fixed comparison in ingredient spec.