fixed form validation. Added creation and updated ids to new models
cleaned up form generation logic
Fixes
fixes