added a function to user.js to add credit card to the db