Logout func and footer.php added