Feature/smart login strategy