Implement logout via front-end