Fixed the login issue... this time for reals. login_manager didn't get set up properly. Fixed the setup and now it's working