Fix input check in photos