Fixes the cas login issue