added mongoose models and walk function in app.js
fixed bugs in user models