prevent user to add the same professor twice in the same course