finished refactoring drmValidation