Logic for sending confirmation code to email address through asynctask