Added bearer token header check