error and data validations: closes #37