Update authenticate.php