tweak to photo validation