using FluentValidation; namespace ExpenseTracker.Application.Authentication.Queries.Login; public class LoginQueryValidator : AbstractValidator { public LoginQueryValidator() { RuleFor(v => v.Email) .NotEmpty().WithMessage("Email address is required."); // .EmailAddress().WithMessage("Email address is invalid."); RuleFor(v => v.Password) .NotEmpty().WithMessage("Password is required."); } }