connected the doctor registration and doctor login async task