Fixing authentication error issue.