Switch to MongoDB and register/login in the frontend