submit form after dates selected