private User NewAccount() { Console.Clear(); User user = new User(); Console.WriteLine("Creating New Account!"); Console.Write("Username: "******"Password: "******"First Name: "); user.FirstName = Console.ReadLine(); Console.Write("Last Name: "); user.LastName = Console.ReadLine(); if (user.Username == "" || user.Username == "") { Console.WriteLine("Empty Fields!"); Console.ReadKey(true); return(null); } else { AuthenticationService.AuthenticatNewAccount(user); if (AuthenticationService.LoggedUser != null) { Console.Clear(); Console.WriteLine("Welcome " + AuthenticationService.LoggedUser.ToString() + "!"); Console.ReadKey(true); return(AuthenticationService.LoggedUser); } else { Console.WriteLine("Invalid username or password"); Console.ReadKey(true); return(null); } } }