perform basket edit check only if input has been submitted