Fixed bug that cause error by limiting script to login page
new script to clean up the admin menus