moved menu to checkLogin() in config.php