fixed the way arguments are validated in editing forms