account logic in Settings