Updated registration to use AsyncTask()