Authentication Logic Skips Every Other DB User

Using the next function returns a boolean after it goes to the next entry. When next is encountered, that user is not being evaluated