easily set user functionnality to a mongoose model