Added validation functionality for student ID.