Implemented the logout method
Comment