new validation added for dates