Need to update the validation to be in the parent. Review the AI output.
Do not forget to send the axios request with the { withCredentials: true } flags.
{ withCredentials: true }