Added auth on the frontend.