Add validity check for user input of student's name