made it so you can only view notes if logged in