fixed resource page not logged in bug