I think this should just be `if` not `elif`. The way it currently stands, you cannot support username AND email based lookups