Authentication working on the frontend