cleaned up is_valid_date_format