ADDED: duplicate student id check