added basic validation for model fields