new_post worked; javascript check of date worked; edit post still shows error