Factored out deauthentication from “register.php” and “authenticate.php” so that the front end can directly call “deauthenticate.php” to log out the current user.