fixing authentication issue