Add authentication for frontend