changed name field and removed success and error declarations
changed from path to name