Added Bean Validation

Added bean validation