Removed an alert box and made the update

due date functionality more robust.