should Muslims believe in Pir's?

these amil pirs u speak of, are we meant to believe in them? if so how can tht be when communication to jins is haram in Islam?