New professor commit with changes to checkIfProfessor function