added logic for idefifying administrator