Ensured that the logout works on both admin and public sides of the site