fixed authentication issues