Fix to login header check login.