Login flow now works and includes debug mode to bypass