modified index.js and /model/user.js