Everything works except when it reaches till the last part of the code with \"Successfully Registered!\" then the error as mentioned in the title appears inside the registerDial
You do some UI work in your doInBackground, for example this call
doInBackground
rAuth.setTextColor(Color.GREEN);
Move this code to the onPostExecute method.
onPostExecute