Converted user model to Mongoose