added back validation for photos