added logout for staff user outside admin