logged in user can logout by clicking logout button