Securing the frontend