get account logic implemented