User.js with the database model for authentication added