You need to create two outlets in your view controller: one for the username text field and one for the password text field. You need to connect the outlets to the fields in your storyboard.
Read “Create Outlets for the Text Field and the Label” in Your First iOS App for Apple's step-by-step instructions on creating and connecting outlets.