Forms must be filled in. If no photos uploaded, set photo to first photo...

... in database.