add catch for typeerror exception for unauthd users