Also added check that mandatory fields are present in adding/deleting tasks