Your task is to create a simple registration form using Next.js, react-hook-form, and react-query. The form should collect user information and send it to a mock backend endpoint. The backend should log the received data and return a success response.