attempted to allow users to login with username. Attempt failed.

This code just succeeds in breaking the "sign up" tests. I don't recommend integrating it with the main project. It's a mess.