Combined register and login AsyncTasks for a more compact code