added light validation