login HEAD fix