fixing authentication