Refactored addTask function so that placeholder text reappears after a new task is submitted