Fixing refresh token functionality