form and date validation