Form handling by class component in inertia js