Add required to checkout form. and removed useless code