Run login_procedure only when the auth_scheme is valid