Wrote before filter for admin pages