Keeping login local, new logic for two factor authentication.