add register button in index, and cookie destroyer in logout.php