Changed duedate column type from datetime to date, fixed edit form issue