Added validation to Lab 1