The point here was to find out which was invalid usernames and which was invalid email addresses, then in the callback to display error messages differentiating when email addresses were invalid versus when username were invalid. I don't think this is a hugely important distinction to make, though, and can refactor this to just find invalid identifiers.