diff --git a/MonoStockPortfolio/EditPortfolioActivity.cs b/MonoStockPortfolio/EditPortfolioActivity.cs index 68cffa8..95b4392 100644 --- a/MonoStockPortfolio/EditPortfolioActivity.cs +++ b/MonoStockPortfolio/EditPortfolioActivity.cs @@ -68,6 +68,7 @@ namespace MonoStockPortfolio private bool Validate(Portfolio portfolioToSave) { var validator = new FormValidator(); + validator.AddRequired(PortfolioName, "Please enter a portfolio name"); validator.AddValidation(PortfolioName, () => IsDuplicateName(portfolioToSave)); var result = validator.Apply();