implemented refreshToken functionality