added code to refresh client-side user info