updated structure for user in order to upgrade to ng-table