added validations for pledges model and used tests to drive me