added validates on models