reading from username textfield instead of password textfield

Code (and documentation) was reading from the wrong textfield. 
Was reading from the username textfield but should have been reading from the password textfield.