added validation functionality for students (sem exists)