public void NewUser() { User customer = new User(); Console.WriteLine("Lets start by getting your first name..."); string firstName = Console.ReadLine(); customer.FirstName = firstName; Console.WriteLine(""); Console.WriteLine($"It's nice to meet you {firstName}, please enter your last name..."); string lastName = Console.ReadLine(); customer.LastName = lastName; Console.WriteLine(""); Console.WriteLine($"I'm glad you have chosen our platform {firstName} {lastName}. Please enter your email address."); string email = Console.ReadLine(); if (newusercreation.SearchUserByEmail(email) == null) { customer.Email = email; Console.WriteLine(""); } else { Console.Clear(); Console.WriteLine("A user with this email already exist. Returning you to the main directory."); Console.WriteLine(""); WelcomeOptions(); } bool password_incomplete = true; do { Console.WriteLine($"We still have a few more pieces of data to collect, {firstName} {lastName}. Lets continue by getting a password for your account. "); string password = Console.ReadLine(); Console.WriteLine($"For safety, Please re-enter your password"); string repeat_password = Console.ReadLine(); if (password == repeat_password) { customer.Password = password; Console.WriteLine(""); password_incomplete = false; } else { Console.WriteLine("Your passwords did not match. Please try again"); password_incomplete = true; } } while (password_incomplete == true); Console.WriteLine($"We're over halfway done with the creation of your account. We just need to get a few additional details regarding your location. What is your Street Address?"); string address = Console.ReadLine(); customer.CustomerLocationAddress = address; Console.WriteLine(""); Console.WriteLine($"What city do you live in?"); string city = Console.ReadLine(); customer.CustomerLocationCity = city; Console.WriteLine(""); Console.WriteLine($"What state do you live in?"); string state = Console.ReadLine(); customer.CustomerLocationState = state; Console.WriteLine(""); Console.WriteLine($"What country do you live in?"); string country = Console.ReadLine(); customer.CustomerLocationCountry = country; Console.WriteLine(""); Console.WriteLine($"What is your zip code?"); string zip = Console.ReadLine(); customer.CustomerLocationZIP = zip; Console.WriteLine(""); newusercreation.AddCustomer(customer); Console.WriteLine($"Thank you for creating an account {firstName} {lastName}. You are now registered."); }