logout function moved to login.php