Add validation to timestamp