Hookup front-end of add or update user to MongoDB