Added code to get memberid from salt