How to get information from a Text Field

Please enter your username and password
  username:   password: