Refactored Wayf login.