Issue #112 - Implements logout functionality