Fixed userToCheck is not defined

Did this by changing userToCheck to user, as is being given to the function.