Add form handler for adding tasks