Fixed bug in create pet code. Specifically, fixed an improperly chained promise