Authentication problems fixed