Refactored wunderlist login code