Validation for ember and non-ember objects.