Asynchronous Login in Fragment

I need to log my user in within a fragment. I keep getting a syntax error stating that the Asynchronous login method is not recognized. It works perfectly fine within an Activity. Does anyone know how to get it to work within a Fragment? I attached a screenshot of the error.

The problem is the second argument - “password”. It should be a String object, but you’re passing an instance of android.widget.EditText.