login and logout works perfectly; cpanel redirects to login if not logged in