fixed logout and userdata