implemented user accounts and authentication