update logout to redirect in index.php