Fixing minor issue in checking for user administrator