fixed logout bug

log out functionality works now