Added some fallbacks for wayf login.