diff --git a/actions/auth-actions.ts b/actions/auth-actions.ts
index 5205ba9..da7cfeb 100644
--- a/actions/auth-actions.ts
+++ b/actions/auth-actions.ts
@@ -152,7 +152,7 @@ export async function signup(_actionState: ActionState, formData: FormData) {
backendRegister({
payload: {
firstname: parsedData.data.name.split(" ")[0],
- lastname: parsedData.data.name.split(" ")[1],
+ lastname: parsedData.data.name.split(" ").slice(1).join(" "),
username: parsedData.data.phone_number,
address: parsedData.data.address,
id_card: parsedData.data.id_card,
diff --git a/components/auth/verify-registration-otp-form.tsx b/components/auth/verify-registration-otp-form.tsx
index 4ccd0bd..a2e79ac 100644
--- a/components/auth/verify-registration-otp-form.tsx
+++ b/components/auth/verify-registration-otp-form.tsx
@@ -43,7 +43,7 @@ export default function VerifyRegistrationOTPForm({
hidden
/>
{state.message}
)}
-