fixed small glitch in validation