Enhance authentication to fix a vulnerability