validation on the model (only works for 'required' yet)