[SOLVED] G4p window refreshing

Hello All.

I am using G4P Library and I have made a form which takes username(textfield) and gender (droplist) but whenever i try to write something, the window keeps on refreshing. How do I tackle it?

Edit: I was able to change it that it can take input but now if I press one key, it displays it more times.
Edit 2: I made a mistake in the textbox change method. All good now