addapting the nodejs user controller