Added refresh token check