refactored AddTaskServlet

refactored AddTaskServlet