Add uniqueness validation to Photo.