And there's your problem right there.
Code:
Record: 1, Array ( [ID] => 1 [Username] => buddieangel [Password] => nicole1300 )
And used with
PHP Code:
   $dbusername $row['username'];
   
$dbpassword $row['password']; 
Indices are case sensitive. SQL is not.

Edit:
I also noticed that the error lines do not match up. I assumed whitespace in question or removed sections of code.