add getUserInfo(),change the sign function malloc memory