Add validate() to model