making a fix for adding logout in the admin