try this with client side on submit