Change form creating and validating API; Bugfixes, some refactorings;