refactored pledges so only logged in users can pledge