Move challenge logging before selecting previously set authentication method.