[refactor] Added validation error messages to assert_valid