I have been working on getting logins working with both emails and usernames, and I ended up finding this link. The first answer on that worked excellently in my developmen