fixes broken authentication