fixed the bearer token login problem