Fixed login authentication