Fixes broken login functionality.