add a function userinfo

get userinfo use a function