Fix logging out in admin panel