validation for date and time added