create a selectAccount directive