working version with logic to accept only BOTH text and photo