stops opening of /notes from url if you are not logged in