fixing authentication issues