Index: frontend/src/Register.tsx
===================================================================
--- frontend/src/Register.tsx	(revision 4022db101cfab639a8f41419782d6190042bf0dd)
+++ frontend/src/Register.tsx	(revision 3727852b5e0f31eb857eab69ab7d5090fa06bcad)
@@ -3,5 +3,5 @@
 import axiosInstance, { scheduleTokenRefresh } from "./api/axiosInstance";
 import { useAuth } from "./context/authContext";
-import type { User, UserResponse } from "./types";
+import type { User } from "./types";
 
 const Register = () => {
@@ -17,13 +17,7 @@
 	const handleRegister = async (e: React.FormEvent) => {
 		e.preventDefault();
-		const newUser: User = {
-			username,
-			fullName: fullname,
-			email: email,
-			profilePhoto: profilePhoto,
-		};
 		try {
 			const response = await axiosInstance.post<{
-				user: UserResponse;
+				user: User;
 				tokenExpiresIn: number;
 			}>("/auth/register", {
@@ -35,7 +29,5 @@
 			});
 			scheduleTokenRefresh(response.data.tokenExpiresIn);
-			setUser(newUser);
-			// todo
-			// setUser(response.data.user);
+			setUser(response.data.user);
 			navigate("/");
 		} catch (error) {
@@ -111,5 +103,5 @@
 				<button
 					type="submit"
-					className="w-full bg-blue-500 text-white p-2 rounded hover:bg-blue-600"
+					className="w-full bg-blue-500 text-white p-2 rounded hover:bg-blue-600 cursor-pointer"
 					onClick={(e: React.MouseEvent<HTMLButtonElement>) =>
 						handleRegister(e)
