fix subform and many other fixes
added validations