using System.ComponentModel.DataAnnotations; namespace MileageTraker.Web.ViewModels.Account { public class ResetPasswordViewModel { [Required] [RegularExpression("[^@]*", ErrorMessage = "Enter just your username, not your email")] public string Username { get; set; } } }