Logout controller.
logs the user out of a session.