added validation for editing tasks with old dates