made form in dates.html have a post method