Added user accounts functionality; not working on REST API yet.