Fixing authentication.