actually make it submit form after validation