added some initial validations for time parameters