added a check to make sure that students aren't added twice