date verification

added some date verification for the input values