fixed validating of uniqueness for event model