Add uniqueness checks for photo, article, event, gallery names during validation