fix validation in Lab 1
did some magic numbers in lab 1