fix logout clear session

Bug Fix for clearing session