Basic validation when updating models, a little ashamed of this solution, works only for one level nesting