Fix to login header check.