added a return for saving the doctor which will be an id of the doctor