Working with the GUI 4.6 (textfields and buttons)

Hello. I’ve been working on an app recently, and i’m using the new GUI (4.6).
So, i have a login and password text fields and the button to submit then, however i don’t know how to associate then, and how o save the text that was input on the text fields, can someone help me please? Thanks