tasks post to mongodb and redirect to tasks