implemented all functionnalities, added AccountType for users