Buggy code:
public class RegisterPage extends ActionBarActivity { public static final String TAG = RegisterPage . class . getSimpleName ( ) ; @ InjectView ( id . fName ) EditText fName ; @ InjectView ( id . lName ) EditText lName ; @ InjectView ( id . regemailField ) EditText email ; @ InjectView ( id . regpwField ) EditText pw ; @ InjectView ( id . userField ) EditText userF ; @ InjectView ( id . regButton ) Button regButton ; @ InjectView ( id . statusMessage ) TextView sMessage ; private String jsonData ; private boolean isWorking ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ OnClick ( id . regButton ) void createAccount ( ) { boolean isValid = true ; String fNameText = fName . getText ( ) . toString ( ) ; String lNameText = lName . getText ( ) . toString ( ) ; String emailText = email . getText ( ) . toString ( ) ; String pwText = pw . getText ( ) . toString ( ) ; <START_BUG> String userText = pw . getText ( ) . toString ( ) ; <END_BUG> if ( ( ( fNameText . length ( ) ) < 1 ) || ( ( lNameText . length ( ) ) < 1 ) ) { Toast . makeText ( this , "Name<seq2seq4repair_space>Fields<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>empty" , LENGTH_LONG ) . show ( ) ; isValid = false ; } if ( ! ( isEmailValid ( emailText ) ) ) { Toast . makeText ( this , "Invalid<seq2seq4repair_space>Email" , LENGTH_LONG ) . show ( ) ; isValid = false ; } if ( ( pwText . length ( ) ) < 6 ) { Toast . makeText ( this , "Password<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>at<seq2seq4repair_space>least<seq2seq4repair_space>six<seq2seq4repair_space>characters" , LENGTH_LONG ) . show ( ) ; isValid = false ; } if ( ( userText . length ( ) ) < 4 ) { Toast . makeText ( this , "Username<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>at<seq2seq4repair_space>least<seq2seq4repair_space>4<seq2seq4repair_space>characters" , LENGTH_LONG ) . show ( ) ; isValid = false ; } if ( isValid == false ) return ; OkHttpClient client = new OkHttpClient ( ) ; RequestBody formBody = new FormEncodingBuilder ( ) . add ( "fName" , fNameText ) . add ( "lName" , lNameText ) . add ( "school" , "SMU" ) . add ( "username" , userText ) . add ( "email" , emailText ) . add ( "password" , pwText ) . build ( ) ; Request request = new Request . Builder ( ) . url ( "http:////52.11.111.78//StableStudy//api//index.php//user" ) . post ( formBody ) . build ( ) ; Call call = client . newCall ( request ) ; call . enqueue ( new Callback ( ) { @ Override public void onFailure ( Request request , IOException e ) { runOnUiThread ( new Runnable ( ) { @ Override public void run ( ) { } } ) ; } @ Override public void onResponse ( Response response ) throws IOException { isWorking = false ; try { jsonData = response . body ( ) . string ( ) ; isWorking = verifyAccount ( ) ; } catch ( JSONException e ) { } runOnUiThread ( new Runnable ( ) { @ Override public void run ( ) { if ( ( isWorking ) == true ) { sMessage . setText ( getString ( account_create_success ) ) ; } else { sMessage . setText ( getString ( account_create_failed ) ) ; } } } ) ; } } ) ; } private boolean verifyAccount ( ) throws JSONException { } private boolean isEmailValid ( String email ) { } }

Fix:
String userText = userF . getText ( ) . toString ( ) ;