Corrected the checkIfProfessor fucntions
You were just checking if the UIN/Username is existing without even
comaparing the position ID.
I added that comparison so that now it identifies only the professors as
professors.