Here is the line that the error is coming from...
If (password_verify($password, $user['password'])){}
Here is what's inside this of statement...
$_SESSION['id'] = $user['id'];
$_SESSION['username'] = $user['username'];
$_SESSION['email'] = $user['email'];
$_SESSION['verified'] = $user['verified'];
$_SESSION['message'] = "Success!";
$_SESSION['alert-class'] = "alert-success";
header ('location: verification.php');
exit();
} else {
$errors['login_fail'] = "Incorrect Username or Password";
}
$user = some_fetch();or something which is returning null because no rows in DB. Show more code.