fixed logout bug

Signed-off-by: Shrinath M <shrinath_m2@yahoo.co.in>