Resolved issue while creating textfield programatically.

Also added another textfield in the form which is created programatically in the demo application.