Added logout button and implemented logout.php