Add number validation to travel duration boxes