updated logout for front-end