add validations to photos