fixed logout bug
tbc validation