How to get information from a Text Field

Please Enter your username and password
  username:   password: