Fixing login required issue