Post petname and invite code to the backend