Added JSR-303 validation to core model