Fixed login issue where async task caused problems