Created a hook to extract the response data after sign-in