Add number validation for duration