Integrated sandbox login and logout with the main index