Create validation for your objects.