Fix bug that prevents login!