fix validation on model