I got it since I had the hashedpwd in a different file I had to compare them differently. Updated code for solution is here:
<?php
require("db.form.php");
$usersUSERSNAME = $_POST['user'];
$usersPWD = $_POST['pwd'];
$sql = "select usersPWD from users where usersUSERSNAME = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $usersUSERSNAME);
$stmt->execute();
$result = $stmt->get_result();
$row = mysqli_fetch_array($result, MYSQLI_ASSOC);
if ($row && password_verify($usersPWD, $row['usersPWD'])){
header("location: homepage.php");
}
else {
echo "<h1> Login failed. Invalid username or password.</h1>";
}