Fixed authentication issues