Fixes #87745 by making ina form.reset() in the authenticate method.