validation

created the if/else if statements to see if the validation is working
correctly.