Refactoring new_task animation and login error