added in the edit method. added in the inputIsValid method. (this method
is added to the methods "delete", "add", "edit" to prevent execution of
invalid inputs.
added the edit method to the TaskManager.java