Created a separate user.js file