Implemented Registration as AsyncTask and fixed activity life-cycle.