Refactor task input mask
Save due date in db