Added input fields validation for dates.