do not allow invalid dates entered on website to be accepted