Prevent unauthorized access to admin panel.