Variable help

i’m having some problems with typing into a “Input Text Field” when i script the username and password in and press “login” it logs in correctly.

yet when i type the username and password into the input text field it seems to not recognize it as it continually says you have entered the incorrect username and password which is not true.

Any ideas why this is happening anyone??