fix authHelper method and isAuthenticated policy