added authentication for accounts