added validation on themodels. next step is the gui