validation on model fix for undefined model values