fix some bugs for regist with inviter