public static string GetNameFromUser() { bool inputIsValid = false; string name = null; while (inputIsValid == false) { Console.WriteLine("Please enter your name"); name = Console.ReadLine(); inputIsValid = ClientCard.IsNameValid(name); if (inputIsValid == false) { Console.WriteLine("The input should contain only letters"); } } return(name); }