modified the DTO to  validate