Added simple backend functionality for logout