finished validation and tests for validations and associations