This page has a recordset on it that you aren't using... maybe you added that to test with? Just delete it.
I'd just delete all of the code on the page and re-apply the mysqli authenticate user server behavior. That should get it updated and avoid whatever errors are occurring.