WIP: start refactoring login controllers