updated new method getloggedadmin