added 'Logout' feature