fix bug checking for admin before a user is signed in