regform date validation fix