add code generation

Add generique code generation
Add generique form validation