added logout and getuserinfo