add app folder. add model validation