Fix bugs surrounding date input on plan_edit pages