updated app to allow users to use PP with or without being logged in