Issue #2173083 by Jose Reyero: Add submit callback and better validate callback for variables in form.