Added methods createValidValue(), copied from Form Loader