Fixing authentication