attempt at validations module design pattern