added JS to remember post details on submission error