Added bean validation.