Implementation for Logout if logged in