Uniqueness check expression not validated properly