public static void AddUser(string username, string password) { if (UserExists(username)) { throw new Exception("User already exists."); } UserEntry userEntry = new UserEntry { username = username, saltHashCombo = Hasher.EncryptPassword(password) }; users.Insert(userEntry); }