checking all of the edit command's parameters