fix a current task bug;
add auto login when app doesn't finish