pass userinfo to front-end