added the save functionality to the addAnimal form