extracted account logic from account controller