Understanding colonization and proliferation potential of endophytes and pathogen in planta via plating, polymerase chain reaction, and ergosterol assay