Fixing authentication controller